# is_flag = True
# print('我说的是%s ' % is_flag)

# is_flag = True
# print('我说的是%d ' % is_flag)
# --------如果是bool类型 占位符可以使用%d和%s 用D则输出是1 用s是True

# is_flag = 90
# print('%d%%的人是良好的 ' % is_flag)
# ------要使用%百分号 必须使用2个% ==表示=----------

# num1 = float(input('请输入数字：'))
# num2 = 10
# ret = num1+num2
# print(ret)
# --数据的强制转换

# num1 = eval('10')
# print(type(num1))
# --eval:字符串中原本的数据类型

# is_flag = True
# if is_flag:
#     print('ok')

# age = 17
# if age >= 18:
#     print('5')
# print('6')

password = '123456'
username = 'john'
if password == 123456 and username =='john':
    print('5')
print('6')

# --------------------------
is_flag = not True
if is_flag:
    print('ok')
else:
    print('no')

print('ceshi')
# -----------------------------

score = int(input('请输入分数：'))

if score > 90 and score <= 100:
    print('90')
elif score > 80 and score <= 90:
    print('80')
elif score > 60 and score <= 80:
    print('60')
elif score > 0 and score <= 60:
    print('fail')
else:
    print('worng')
# --------------------------------

import  random
player = int(input('请输入剪刀（0）石头（1）布（2）'))
computer = random.randint(0, 2)
print('player: %d ===========computer: %d' % (player, computer))

if (player == 0 and computer == 2) or (player == 1 and computer == 0) or (player == 2 and computer ==1):
    print('win')
elif computer == player:
    print('ping')
else:
    print('lose')



